.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/background.png') no-repeat center/cover;
}

.login-card {
  width: 520px;
  border: none !important;
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-card .ant-card-body {
  padding: 28px 32px;
}

/* 标题 */
.login-title-cn {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.login-title-en {
  text-align: center;
  font-size: 16px;
  color: #fff;
  opacity: .9;
  margin-bottom: 18px;
}

/* 统一风格：输入框与按钮同色半透明底 */
:root {
  --login-field-bg: rgba(255, 255, 255, 0.28);
}

/* 输入内容左对齐、深色文字 */
.login-card .ant-input,
.login-card .ant-input-affix-wrapper input {
  text-align: left;
  color: #000;
}

.login-card .ant-input::placeholder,
.login-card .ant-input-affix-wrapper input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

/* 给所有 input 统一底色 */
.login-card .ant-input {
  background: var(--login-field-bg);
  border: none;
  box-shadow: none;
}

/* 密码：外层半透明，内部 input 透明，避免双层 */
.login-card .ant-input-affix-wrapper {
  background: var(--login-field-bg);
  border: none;
  box-shadow: none;
}

.login-card .ant-input-affix-wrapper .ant-input {
  background: transparent !important;
}

/* 适配 antd 结构层级（确保普通 input 命中） */
.login-card .ant-form-item-control-input-content>.ant-input {
  background: var(--login-field-bg);
}

/* 圆角与高度 */
.login-card .ant-input,
.login-card .ant-input-affix-wrapper,
.login-card .ant-btn {
  border-radius: 8px;
  height: 44px;
}

.login-card .ant-form-item {
  margin-bottom: 18px;
}

/* 登录按钮与输入框同色效果，并强制覆盖 hover */
.login-card .ant-btn-primary {
  width: 100%;
  font-size: 16px;
  background: var(--login-field-bg) !important;
  border: none !important;
  color: #45b984 !important;
  box-shadow: none !important;
  transition: none !important;
  font-weight: 600;
}

/* 移除 antd v5 按钮 hover 叠加层导致的变色 */
.login-card .ant-btn-primary::before {
  display: none !important;
}

.login-card .ant-btn-primary:not(:disabled):hover,
.login-card .ant-btn-primary:not(:disabled):focus,
.login-card .ant-btn-primary:not(:disabled):active {
  background: var(--login-field-bg) !important;
  border-color: transparent !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  filter: none !important;
}